-- GENERATED SPELL FOR [Hyldnir Overseer] --


function spell0_29426(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(30931,pUnit)
pUnit:RegisterEvent('Sorts_29426', 20276, 1)
end

function spell1_29426(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(46182,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29426', 2278, 1)
end

function Sorts_29426(pUnit, Event)
local choix_sorts_29426 = math.random(0, 1)
if choix_sorts_29426 == 0 then
pUnit:RegisterEvent('spell0_29426', 1, 1)
end
if choix_sorts_29426 == 1 then
pUnit:RegisterEvent('spell1_29426', 1, 1)
end
end

function mob29426_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29426', math.random(1500, 3000), 1)
end

function mob29426_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29426_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29426_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29426, 1, 'mob29426_Action')
RegisterUnitEvent(29426, 2, 'mob29426_Leave')
RegisterUnitEvent(29426, 3, 'mob29426_Kill')
RegisterUnitEvent(29426, 4, 'mob29426_Die')
